Refine the condition for adding the css file