Tweaked canPlay() method