Simplified is_sample