Fixed logic error && not || when check for size