added phpdoc
fixed duplicated exception