check method exists before call prepare