<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _are_coordinates_valid(self):
 """Check if the coordinates are valid. :return: True if coordinates are valid otherwise False. :type: bool """

        try:
            QgsPointXY(
                self.x_minimum.value(),
                self.y_maximum.value())
            QgsPointXY(
                self.x_maximum.value(),
                self.y_minimum.value())
        except ValueError:
            return False

        return True