public static function has(string $key) : bool
  {
    if ((new Cache)->retrieve($key) == null) return false;
    return true;
  }
public static function has(string $key) : bool
  {
    if ((new Cache)->retrieve($key) == null) return false;
    return true;
  }
public static function has ( string $ key ) : bool { if ( ( new Cache ) -> retrieve ( $ key ) == null ) return false ; return true ; }
Check if item is cached

@param string $key
@return bool
Check if item is cached