No, the first condition is checking if it's NOT >0 (which is the same as saying it IS <= 0), so the message says the id has to be >0 for the exception not to be thrown.