add is_sample_loaded?

Closes #258