Refactored code, created a new method - checkSessionData($page_type, $data) - for checking session data for all methods and views that belong to player and player_ro controllers