fix(style): No need to check for emptiness using functions