Numpy FutureWarning regarding array comparison to None fixed

Eliminates 'FutureWarning: comparison to `None` will result in an
elementwise object comparison in the future.'