public function is_out_of_bounds($x, $y)
    {
        return (
            $x < 0 ||
            $y < 0 ||
            $x > ($this->width - 1) ||
            $y > ($this->height - 1)
        );
    }
public function is_out_of_bounds($x, $y)
    {
        return (
            $x < 0 ||
            $y < 0 ||
            $x > ($this->width - 1) ||
            $y > ($this->height - 1)
        );
    }
public function is_out_of_bounds ( $ x , $ y ) { return ( $ x < 0 || $ y < 0 || $ x > ( $ this -> width - 1 ) || $ y > ( $ this -> height - 1 ) ) ; }
Is it out of bounds?

@param $x
@param $y

@return bool
Is it out of bounds?