Check for nil in Rails 3.0