Fixed: use HasSelection() instead of GetSelections() to check if we have a selection in the editor