Uses new calculated directionOption in all places
Replaced selectBoolOrNone with hasNodeSelectBool for cleaner code
Fixed double parse in selectBool() and hasNodeSelectBool()
removed unreachable code