private function parse()
{
// assign if logged in
$this->tpl->assign('isLoggedIn', FrontendProfilesAuthentication::isLoggedIn());
// is logged in
if (FrontendProfilesAuthentication::isLoggedIn()) {
// get the profile
$profile = FrontendProfilesAuthentication::getProfile();
// assign logged in profile
$this->tpl->assign('profile', $profile->toArray());
}
}