So , I have wrote a Common Helper function , which when called should give me a variable set with either 1 or 0 , and then proceed to the rest of code.