Text this: Do dreams protect sleep? Testing the Freudian hypothesis of the function of dreams