Solution:
You can just do:
<?php if ( is_user_logged_in() ) { echo 'LOL'; } ?>
But I’m guessing your file should also include and . Otherwise it might not be working, because the page will not have the and stuff.