Avoid double-evaluations for some checks.
Avoid double-evaluations for some checks.

This is a hack to work around a possible bug in Storm/BoltDB.

Please see:
https://github.com/asdine/storm/issues/184

gansoi/gansoi,gansoi/gansoi,gansoi/gansoi,gansoi/gansoi