The example above used CMenu widget from zii, which is the full offical extensions library for Yii and configures the link to be shown only if the "current user" is a guest user (naturally for a login form…).
See the API documentation about checking if guest. Note that isGuest is a proprty, not a method (like I thought in the beginning).