fix for empty episodes array causing shift method to fail

fixes #78