I have a method in that checks some conditions and if required, will carry out some logic to empty an array of 'selected' elements.
Is there a standard way to name such a method?
I was thinking deselectIfRequired()
or is it better to split the logic and the action so you could end up using it like:
if(shouldDeselect())
{
deselect();
}