Implement check if function exists

- #7
Merge pull request #9 from jcelliott/master

Implement check if function exists