public function removeDeniedExtension($extension)
    {

        $key = array_search($extension, $this->deniedExtensions);
        if ($key !== false) {
            unset($this->deniedExtensions[$key]);
            return true;
        }

        return false;
    }