add empty line to composer json EOF
removed totally wrong comments
do not implement fluent interface if not needed
code style optimizations
cast asset as string
removed abbreviation in if clause