That's true. Well I'm all for preventing db calls where possible (especially beneficial for eg. ARM), so if you really want no longer want to check the file-type here, I'll change it.