added empty check for css