removed boolval call for compatibility with Php<=5.5.0
improved reloadClassRoomEvents() function