This function is a method function, defined in the core so multiple packages can add methods to it.
The object isEmpty is a method function.