I am not sure what you're doing here. Did you mean to write `if ($title != $field->label)` ? That would make sense. What is written right now doesn't make much sense to me.