Checks if first result before appending ',' to the result list