Shouldn't nil be used if variable_name nil not if @variable@ nil?
if variable_name nil
if @variable@ nil