<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def connection_exists(self, from_obj, to_obj):
 """ Returns ``True`` if a connection between the given objects exists, else ``False``. """

        self._validate_ctypes(from_obj, to_obj)
        return self.connections.filter(from_pk=from_obj.pk, to_pk=to_obj.pk).exists()