Fix legacy typo in access.php
Fix various issues with empty variables