Improved isNewerVersion & isOlderVersion methods