This seems to be a solution lacking a problem! Seems common sense to either not let the cats sleep in the bedroom from the start, or to exhaust the cat with playtime before you go to bed.

Cats are trainable, humans just have to try! More often, the cats train the humans, and then sometimes problems arise!