isEmpty

isEmpty(): Boolean;

The isEmpty method of the Rectangle class returns true if the width or height of the rectangle is zero (0).