validateMimes - replace foreach with in_array