check for media = null