prettify coding : return false and test while