I'm checking if what that function returns is defined and instead of "or" I use "and"
I just prefer to have it explicitly written, but original version is also ok