resolver: Simplify code to return if a resolver entry exists