Replace foreach with in_array

Small change to the validateMimes method inside the Validator class.
This will replace the foreach loop with in_array.