Fix bug that always creates notification in exec on empty params

if <emptyarray> returns true, needs if !<emptyarray>.empty?