Should or(||) instead of and(&&)?
[memoryFraction > 1 && memoryFraction < 0] ＝> [memoryFraction > 1 || memoryFraction < 0]