you can simply `return method != null;` here