This is not usefull to create a variable to use it once 25 lines below
Can you use $subject->getId() != null directly in the if