you should either return the promise in the `if` or put the pbkdf2 chain in an `else`