Empty file_field error

If a file_field is empty it gives me an error. If I check it with nil? or blank? or size it stills gives me an error. What should I do to check if it has a file or not?