Added static isSingleton

Signed-off-by: Titouan Rigoudy <titouan.rigoudy@gmail.com>