would the following work?: 
if(("left leg" in broken) && ("right leg" in broken) && !reagents.has_reagent("morphine"))