Fixed checking for PHP extension