fix the check for existence of a simple file field