Use include? instead of key == VAR construct