Replace foreach with in_array
Merge pull request #1305 from Philo01/patch-validate-mimes

Replace foreach with in_array