On get reference improve Exception to InvalidArgumentException and update phpdoc