Update SerializableTrait.php

Avoid nesting…
Update Serializer.php

Avoid nesting…
Merge pull request #2 from andytruong/pr/fix-nesting

Avoid nesting return