public function isSquare()
    {
        if (!$this->isValid()) {
            return false;
        }
        return round($this->first) == round($this->second);
    }
public function isSquare()
    {
        if (!$this->isValid()) {
            return false;
        }
        return round($this->first) == round($this->second);
    }
public function isSquare ( ) { if ( ! $ this -> isValid ( ) ) { return false ; } return round ( $ this -> first ) == round ( $ this -> second ) ; }
Return if width and height are equal.

@return bool
Return if width and height are equal .