Core: Break movie header validity checking into a function