Check to see if function exists before calling it.
Merge pull request #410 from jordandukart/7.x-derivative-failsafe

Check to see if function exists before calling it.