prevent ruby warning on undefined instance variable