Coding: use empty function instead of bool check
Coding: use empty function instead of bool check

The expression $fields of type array is implicitly converted to a boolean; using ! empty($fields) instead to make it clear that the intension is to check for an array with elements.
satrun77/silverstripe-editablefield