Check for list, then return list length or 0