Check if a given complex exists in the rumetr database

def check_complex(self, complex: str) -> bool:
        """
        Check if a given complex exists in the rumetr database
        """
        self.check_developer()
        if complex in self._checked_complexes:
            return True

        try:
            self.get('developers/{developer}/complexes/{complex}/'.format(
                developer=self.developer,
                complex=complex,
            ))
        except exceptions.Rumetr404Exception:
            raise exceptions.RumetrComplexNotFound('Unknown complex — maybe you should create one?')

        self._checked_complexes.add(complex)
        return True