ひまであれば
himadeareba

Noun
Da Copula

The "-eba" conditional form ("if/when…") of

1. If/when idle; If/when unoccupied; If/when free

Ba Conditional