ensure passed callbacks parameters are functions or assign them an empty function