public function isValid(ImageInterface $image, $x, $y, $width, $height, array $format) { return $this->isInsideImage($image, $x, $y, $width, $height) && $this->isNotSmallerThanFormat($width, $height, $format); }