is.empty function

Check if an object is empty (has length 0)