Check if sample exists