Updated property type declaration from 'var' to 'protected'.
Removal of error suppression and replaced with isset() function for better practice.