Removed hasSession function from API