ActiveQuery::one() slight refactoring