Added a check when trying to play a music file