address numpy boolean check warning message