Refactored searchSubtitles method into three separate methods
Modified code to be a little less defensive