nil comparison fixes
remove pointless nil checks
remove most nots in favor of !
replace all remaining and or with && ||