You can remember the meaning of 有空 with this easy mnemonic:
Do you have a bit of time for me? I have (有) an empty (空) space in my heart and I need to talk to someone.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.