updated security helper to be inline with concrete5 coding standards