Imported code for player

Imported code for player
The first part of this expression will always be true, since [] === [] is false in JS (two different empty arrays are not the same object). Maybe instead use dataArray.length > 0 ?