public static function check()
    {
        $collections = self::getCollection();

        $jsonLastError = json_last_error();

        return isset($jsonLastError) ? $collections[$jsonLastError] : $collections['default'];
    }
public static function check()
    {
        $collections = self::getCollection();

        $jsonLastError = json_last_error();

        return isset($jsonLastError) ? $collections[$jsonLastError] : $collections['default'];
    }
public static function check ( ) { $ collections = self :: getCollection ( ) ; $ jsonLastError = json_last_error ( ) ; return isset ( $ jsonLastError ) ? $ collections [ $ jsonLastError ] : $ collections [ 'default' ] ; }
Check for errors.

@return array|null
Check for errors .