EntityLookup::hasEntity for quick checks.

This will be particularly useful for the EntityExistsValidator.

Change-Id: Iad65b4b19b3c82a8db8526b5fa237b65b274254f