allow null in place of a promise