Checking before adding to list