use defined? to avoid warnings about undefined instance var.
use defined? to avoid warnings about undefined instance var.

kunishi/algebra-ruby2,kunishi/algebra-ruby2,kunishi/algebra-ruby2,kunishi/algebra-ruby2