public function has(string $pathAndFilename, bool $allowSplitSource = false): bool
    {
        if ($allowSplitSource === true) {
            $pathsAndFileNames = glob($pathAndFilename . '.*.yaml');
            if ($pathsAndFileNames !== false) {
                foreach ($pathsAndFileNames as $pathAndFilename) {
                    if (is_file($pathAndFilename)) {
                        return true;
                    }
                }
            }
        }
        if (is_file($pathAndFilename . '.yaml')) {
            return true;
        }

        return false;
    }
public function has(string $pathAndFilename, bool $allowSplitSource = false): bool
    {
        if ($allowSplitSource === true) {
            $pathsAndFileNames = glob($pathAndFilename . '.*.yaml');
            if ($pathsAndFileNames !== false) {
                foreach ($pathsAndFileNames as $pathAndFilename) {
                    if (is_file($pathAndFilename)) {
                        return true;
                    }
                }
            }
        }
        if (is_file($pathAndFilename . '.yaml')) {
            return true;
        }

        return false;
    }
public function has ( string $ pathAndFilename , bool $ allowSplitSource = false ) : bool { if ( $ allowSplitSource === true ) { $ pathsAndFileNames = glob ( $ pathAndFilename . '.*.yaml' ) ; if ( $ pathsAndFileNames !== false ) { foreach ( $ pathsAndFileNames as $ pathAndFilename ) { if ( is_file ( $ pathAndFilename ) ) { return true ; } } } } if ( is_file ( $ pathAndFilename . '.yaml' ) ) { return true ; } return false ; }
Checks for the specified configuration file and returns true if it exists.

@param string $pathAndFilename Full path and filename of the file to load, excluding the file extension (ie. ".yaml")
@param boolean $allowSplitSource If true, the type will be used as a prefix when looking for configuration files
@return boolean
Checks for the specified configuration file and returns true if it exists .