[QuerySet] Switch NSNotFound into an optional variable