diff --git a/index.js b/index.js index 7f730d5..05b331f 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ function getCurrentNodeMethods () { return method.toLowerCase() }); - return methods; + return (methods && methods.length > 0) ? methods : false; } /**