Check variable before neocompleting for Ruby