Is this the best way to determine if the element is a video?