Enhanced getKeywordsFromPatents() & isset() modified (sonar)

* getKeywordsFromPatents() enhanced
* isset() modified to reduce the cyclomatic complexity (according to sonar, it was 13)
* CS fixed