changed if to unless in rendering css conditionally