Made isTransient() check in isDirty() a separate guard clause for easier readability