https://devhubby.com/thread/how-to-return-a-boolean-in-haskell