More than empty, you should also check if some of the identifier values are null. You can combine the given data with an array with all identifier fields set to null. Then check if (after combining the arrays) any of the values is still null.