actions: Improve Action class code for clarity & consistency
~ Move local variable $obj to one liner as it's redundant in
~ Use === check instead of == as in order case above for the
purpose of consistency.
~ Make use of single quotes for strings literals instead of