The most likely thing is you just made a typo and it's accessing a non-existent property, which returns undefined. Alternatively maybe it's not actually a boolean, and returns an object or some status in a string that is not a boolean. It depends on the API. There are hundreds of conditions that look like that in the C2 engine, and they all work correctly, so it must be something to do with the FGL API.