Function isRectangularElement