if statement to only log properties