Locator refactor on isEmpty() method in Cart class