Why do we need this if condition? Is there any chance to have undefined value here? If yes, it should be another bug inside of video.js, I think.