U: added method 'functionExists'

To determine whether a function has existed.
U: method 'functionExists'

Added judgement of variable type.