Moved block of comparison operator before if syntax