FileValidator: added allowEmpty param