Add a check for list typing