[improv] add has_element

- Add "has_element" function.