Numpy Array All Function Matlab Syntax For Logical If Statement