private static function areDimensionsNotEqualAndNotNull($lhs, $rhs) { return !empty($lhs) && !empty($rhs) && $lhs->getId() != $rhs->getId(); }