public function comprobar($file) { $ext = $this->extension($file); return in_array($ext, $this->allows); }