fix header and one assert
one missing phpdoc