Fixed indentation, test for empty list