check method existance