+1, something like $displayEditMenu would be better. It will also ensure backward compatibility.