@staticmethod
def _ishex(value):
    """Returns true if value is hex.

        Parameters
        ----------
        value: :obj:`str`
            A string that can be or not hex.

        """
    try:
        int(value, 16)
        return True
    except ValueError:
        return False
