ActiveRecord find exceptions

if record = Record.find_by_id 1   record.foo end