added function Function.exists