Does not that already default to false? Why not put it some lines below to the actual check and enforce false with else?