Removed redundant if statement.
Replaced unnecessary get method.