Refactoring of _month partial.
Fix if syntax