Check room from a function