add method existence check on programmation