added canPlay accessor method (and cleanup)