Only call callback when there is a callback