For example:

    if ( realpath($config['ios']['pem'] ) {
        // file exists and is an absolute path
    } else if ( realpath($kernel->getRootDir().DIRECTORY_SEPARATOR.$config['ios']['pem']) ) {
        // file exists and is a relative path
    } else {
        // path isn't valid
    }