Implement check if function exists

- #7