Adds object.isEmpty method that checks whether an object is empty or not