Added implementation for `promise?`