Fix undefined method error (replace present? with nil?)