Handle nil variable in check_passes. This wouldn't have compiled in Scala!