check method exists