Add helper methods to Promise class