`return sid in shared_samples` instead of the if-else statement.