final protected function checkAppRegister(string $appname):bool
    {
        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));
        if (empty($file)) {
            return (false);
        }
        foreach ($file as $val) {
            if ($val->name == $appname) {
                return (true);
            }
        }
        return (false);
    }
final protected function checkAppRegister(string $appname):bool
    {
        $file = json_decode(file_get_contents(FEnvFcm::get("framework.config.core.apps.file")));
        if (empty($file)) {
            return (false);
        }
        foreach ($file as $val) {
            if ($val->name == $appname) {
                return (true);
            }
        }
        return (false);
    }
final protected function checkAppRegister ( string $ appname ) : bool { $ file = json_decode ( file_get_contents ( FEnvFcm :: get ( "framework.config.core.apps.file" ) ) ) ; if ( empty ( $ file ) ) { return ( false ) ; } foreach ( $ file as $ val ) { if ( $ val -> name == $ appname ) { return ( true ) ; } } return ( false ) ; }
Check if app is registered to apps.json
@param string $appname App name
@return bool If exist or not
@throws Server500
Check if app is registered to apps . json