guard against empty/nil condition