Fixed typo: forgot to flip conditions to ensure ead != null when derefing