Added PHPDocs 
Removed unnecessary piece of code for the "checkbox" type