check for zero magnitude vectors