Restrict skill when no targets available

Using the eval from Yanfly's Skill Core


<Custom Requirement>


if ($gameParty.gold() > 1000) {


value = true;


} else {


value = false;


}


</Custom Requirement>


What should I write to make a skill not being selectable if there are no targets?


I can't use the skill at all using alternatives because I will get a compatibility error.
I think some specifics would help.


What is the skill actually going to do?
Fixed with Victor's help.

Original thread: https://forums.rpgmakerweb.com/threads/restrict-skill-when-no-targets-available.60864/