Fixed isMaterial documentation

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>

The documentation didn't match the actual logic performed.