Remove unnecessary $key reference from foreach.