fix variable output when false in an array