check method exist