Just to be clear, this is a NodeJS project and not a PHP project, correct?
If it is NodeJS, then the wording has changed from hasitems to hasvalue, NodeJS show/hide dynamic attribute As @Dave pointed out with his question, the result needs to be multi-result and not single-result, which it appears from your answer it is.