added some useless static checks :P
They could be useful, but in practice everything else errors first anyway.