fixed condition checking ActiveModel or Rails presence