Checks list is empty or not