Cosmetic fix: add braces to all values that are empty or unknown or undefined or none
Inputs: secured IF statements with proper argument ordering
Feature: Implemented internal filtering