def has(
            self, 
            key: str,
        ) -> bool:
        """
        Determine whether an individual has a provided key or not.

        Parameters
        ----------
        key : str
            The key for which to test.
        
        Returns
        -------
        out : bool
            Whether the ``Individual`` has the provided key.
        """
        return hasattr(self.__class__, key) or key in self.data

        Determine whether an individual has a provided key or not.

        Parameters
        ----------
        key : str
            The key for which to test.
        
        Returns
        -------
        out : bool
            Whether the ``Individual`` has the provided key.
        
pymoo/core/individual.py