session_new can't return null, it will throw if anything happens. So checking for null is wasted