Make sure to only call the callback if its provided