removed useless test on the existence of a style