Simplifying if else

@yisrael-wix 100% certain it’s returning as a number, but when pushing it to the array I get it as a string