Only run callback if it exists