Fix PHP Notices on functions.php