function(string $hash) { if (isset(self::$instances[$hash]) && self::$instances[$hash] instanceof History) { return self::$instances[$hash]; } return null; }