add hasFunction / containsFunction