I suggest `if( lbScalar != ubScalar ) return false;` instead.