I would just check id here instead of `!id.nil?`.