Hey,
While it does work, I am not sure I would ever recommend to use it 
If you need to do this check, you are most likely doing something very weird. And you should understand what the storage is in this case to know what you’re doing.