Not sure we really should have this function. Should probably just have all these checks in phpBB/install/install_install.php will proper error messages. E.g. "file does not exist" vs. "file is not readable" etc.