add has function