move hr to an if statement to make it prettier

when no previous stocks are available