License "GNU GPL v2" is not a valid SPDX license identifier, see http://www.spdx.org/licenses/ if you use an open license.
The Exception class resolves to the `svay\Exception` we need a `use` statement.
Files should not be executable.
`count()` result should be precalculated before the loop to avoid the overhead of executing the function n times.