public function checkMime($mime) { if (is_string($mime)) { $mime = explode(',', $mime); } if (!in_array(strtolower($this->getMime()), $mime)) { return false; } return true; }