[5.0] Remove Useless Foreach

As `put` functions already handles `$attributes ` as a `$key => $value` array