Handling return value of getInitial using typeof returnvalue==="number"
in case of any checks using getInitial Function