I would renamed this as ``foreach ($tags as $attributes``. The array of attributes is what you are calling ``$attribute`` right now (which is weird)