remove redundant parentheses, simplify boolean return

(except for the return tuples, where you likely put them intentionally for better visibility of the tuple)
add comment about reference-before-assignment bug