fixed a recursion bug for matlab <= 2010b

The isprop check for some reason always returns false <= 2010b
while it works just fine >= 2011a. Replaced isprop with an isempty,
which also seems to work.