use built in function for object checking