Type is not always available, log it by id instead.
We are checking the contents of the array here, not the array itself.
Fix method name.