Would be more correct to check that `$e->code == self::STATUS_NOT_FOUND` otherwise other errors could lead to false positives. Perhaps `null` should be returned in those cases?