Added checks for callback before attempting to run it
Merge pull request #4 from ablankenship10/master

Added checks for callback before attempting to run it