@classmethod
def has_index(cls, name=None, columns=None):
    """Check if the table has an index (other than primary key)

        Search either by index name or by column name

        Args:
            name (:obj:`str`): Index name to check
            columns (:obj:`list`): List of columns making the index

        Returns:
            True or False

        Raises:
            SystemExit: If `table` object does not exists
        """
    if not cls.table_exists():
        return False
    if name is not None:
        return cls._has_named_index(name)
    if columns is not None:
        return cls._has_columns_index(columns)
    return False
