It doesn't look to me like `$contentFields` is defined anywhere - could you define it as an empty array, and then we won't need the isset check?