Check that object exists