Ditto on the foreach with case