isEmpty checks object type