use more efficient Object check