set hasVideo conditional