What should be extension? Are you referring to the class_exists('MySQLi')?