foreach (array('House','Llama','Monkey','Love') as $stuff) { if ($i->had() == $million) { if ($i->had() == $million) { $i->buyYou($stuff); } } }