Code-syntax/performance improves

-replace of private static vars to constants
-if braces involved between keys
-return null was replaced by return (by default is null);
-array_key_exists is slower than isset (replaced)
-other minor changes like methods visibility, curly braces, etc