How to test if an object exists

How do I run a check to see if an object exists in python?

like to check for an object by name?

if bpy.data.objects.get("ObjectName") is not None:
    print("found object")

Thanks Very much!

Slightly faster:

found = 'ObjectName' in bpy.data.objects
3 Likes