The user id will always be 0 for not logged in users and zero value is FALSE, so we do we need to change this line of code.