Without this, the serialized $resources will be just an empty array `[]`