encased the whole function

rather than just if elseing the path in the sfx player i've encased the
whol fnctn in an if else