As a comparative example, Ohio has both.
2C:18-2. Burglary. a. Burglary defined. A person is guilty of burglary if, with purpose to commit an offense therein or thereon he:
(1) Enters a research facility, structure, or a separately secured or occupied portion thereof unless the structure was at the time open to the public or the actor is licensed or privileged to enter;
Criminal law is my field also and whatever the state defines it as it is, not what a general definition is.l Learned this in my criminal justice classes. Took a lot of people, including myself by surprise too that this was the actual legal definition of burglary because most people assume that burglary must include some sort of theft.