Fixed checks for None
Added `not function
Added assertions! Test your hypotheses!
Fix `if
Updated example.swa