Don't include function if it doesn't exist
Merge pull request #984 from eric/patch-2

Don't include function if it doesn't exist