Assign collection variable before using it. And testing it.