[Refactor] Conditional statement, maintaining its functionality while adhering to consistent formatting.