performance, test better that exception

Contact : <xav@tekio.org>