Refactor getOurStaticR with guard