class FrontendToolsLocator implements Serializable {

    public boolean verifyTool(File toolPath) {
        return Optional.ofNullable(toolPath).filter(File::isFile)
                .map(File::getAbsolutePath)
                .flatMap(path -> executeCommand(true, path, "-v"))
                .map(this::omitErrorResult).isPresent();
    }

}